/* 被转换后的代码 */
function userFunc(_context) {
    var str; //提出变量
    var trys = [];  
    return function() {
        if(_context.method == 'throw') {//如果执行的是throw
            let hasCatch = false;
            for(let i = 0; i < trys.length; i++) {
                let tryItem = trys[i];
                if(tryItem.step == _context.pre) {
                    let catchStep = tryItem.catchStep;
                    if(typeof catchStep == 'undefined') {
                        throw _context.arg;
                    } else {
                        hasCatch = true;
                        _context.next = catchStep;
                    }
                    break;
                }
            }      
            if(!hasCatch) {
                throw _context.arg;
            }
        }
        while (1) {
            switch ((_context.pre = _context.next)) {
              case 0:
                trys.push({
                  step: 0,
                  catchStep: 2    
                });
                _context.next = 1;
                return "hello";
              case 1:
                trys.push({
                  step: 1,
                  catchStep: 2    
                });
                str = _context.arg;
                console.log(str);
                _context.next = 3;
                return "world";
              case 2: {
                console.log("异常");
                _context.next = 3;
                return; 
              }  
              case 3:
                return _context.complete("return", "ending");
              case "end":
                return _context.stop();
            }
        }
    }
  }
  exports.userFunc = userFunc;